//
//  UIView+YDInspectable.m
//  ClickToHelp
//
//  Created by rimi on 2017/8/25.
//  Copyright © 2017年 rimi. All rights reserved.
//

#import "UIView+Inspectable.h"

@implementation UIView (YDInspectable)

- (void)setCornerRadius:(CGFloat)cornerRadius {
    self.layer.cornerRadius = cornerRadius*AdaptiveScale_W;
    self.layer.masksToBounds = cornerRadius > 0;
}


- (CGFloat)cornerRadius {
    return self.layer.cornerRadius*AdaptiveScale_W;
}

-(void)setBorderWidth:(CGFloat)borderWidth{
    self.layer.borderWidth = borderWidth;
}

- (CGFloat)borderWidth {
    return self.layer.borderWidth;
}

-(void)setBorderColor:(UIColor *)borderColor{
    self.layer.borderColor = borderColor.CGColor;
}

-(UIColor *)borderColor{
    return (UIColor*)self.layer.borderColor;
}

@end
